<div id="details_container" class="details_container source-table ml">
    <div class="page-header">
        <h1 class="page-title">表结构管理</h1>
        <div class="btns">
            <!--<button type="button" id="add_btn" data-toggle="modal" class="btn btn-text editOrAdd" form_type="info" data-type="page" data-url="/details_group">-->
            <!--组管理-->
            <!--</button>-->
            <button type="button" data-toggle="modal" class="btn btn-text editOrAdd" form_type="info" data-type="page" onClick="detailsView.fn.introgression(this)">导入表结构
            </button>
        </div>
    </div>
    <div class="container-fluid page-content s-height">
        <div class="widget ml">
            <div class="row height-p-100">
                <div class="col-md-12 height-p-100">
                    <div class="row">
                        <form action="" id="bank_branch_form">
                            <input type="hidden" name="departmentId">
                            <div class="col-md-3 form-group">
                                <div class="row">
                                    <label class="col-md-3 form-group-label">
                                        <div>表名：</div>
                                    </label>
                                    <div class="col-md-8">
                                        <input class="form-control" name="tname" type="text" placeholder="请输入"/>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 form-group">
                                <div class="row">
                                    <label class="col-md-3 form-group-label">
                                        <div>别名：</div>
                                    </label>
                                    <div class="col-md-8">
                                        <input class="form-control" name="talias" type="text" placeholder="请输入"/>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 form-group text-right">
                                <div class="row">
                                    <div class="col-md-12">
                                        <button type="button" class="btn btn-primary" id="search_btn">搜索</button>
                                        <button type="reset" class="btn btn-default" id="reset-btn">重置</button>

                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="s-height bank-content">
                        <div class="ml wd-table-container padding-bottom-0">
                            <table class="table table-striped table-bordered table-hover table-condensed" id="details_list" cellspacing="0" width="100%">
                                <thead>
                                <tr>
                                    <th width="100px" data-field="tName">表名</th>
                                    <th width="100px" data-field="tAlias">别名</th>
                                    <th data-field="colNum">字段数</th>
                                    <th data-type="operation" data-render="detailsView.fn.render.operation">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="member_file_container" class="pr" style="height: 400px;">
    <div class="view-message pa s-height">
        <div>
            <div id="view_message_box">

            </div>
            <div><i class="star"></i>表字段</div>
        </div>
        <div class="list content-item-table wd-table-container s-height">
            <table class="table table-striped table-bordered table-hover table-condensed" id="member_list_view" cellspacing="0" width="100%">
                <thead>
                <tr>
                    <th data-field="colName" width="130">字段名</th>
                    <th data-field="colComments" width="200">字段注释</th>
                    <th data-field="nullable" width="100">是否为空</th>
                    <th data-field="pkFlag" width="100">是否主键</th>
                    <th data-field="colType" width="130">字段类型</th>
                    <th data-field="colLength" width="100">字段长度</th>
                </tr>
                </thead>
                <tbody id="member_list_content">
                </tbody>
            </table>
        </div>
        <div class="text-right footer">
        </div>
    </div>
</div>
<div id="member_upfile_container">
    <div id="member_upfile_show">
        <div class="row">
            <div class="form-group">
                <label class="col-sm-3 control-label"><i class="star"></i>excel地址</label>
                <div class="col-sm-4">
                    <button type="button" data-toggle="modal" class="btn btn-text editOrAdd" form_type="info" onClick="detailsView.fn.downfile('0')">
                        下载oracle表模板
                    </button></div>
                <div class="col-sm-4">
                    <button type="button" data-toggle="modal" class="btn btn-text editOrAdd" form_type="info" onClick="detailsView.fn.downfile('1')">
                        下载hive表模板
                    </button></div>
            </div>
        </div>
        <div class="input-file">
            <div class="fileInputP">
                <span class="input-img"></span>
                <p class="input-word">点击上传</p>
                <form id="import-from" enctype="multipart/form-data">
                    <input type="file" multiple id="myFile" name="myFile" onChange="detailsView.fn.importfile(this.files[0])"/>
                </form>
            </div>
        </div>
        <!--<div class="import_button">-->
            <!--<button type="button" class="btn btn-primary" onClick="detailsView.fn.importfile(this)" id="import_btn">上传</button>-->
        <!--</div>-->
    </div>
    <div id="member_upfile_hide">
        <form action="" id="upload_list_form1">
            <div class="details_term_content wd-table-container">
                <table class="table table-striped table-bordered table-hover table-condensed" id="upload_list_view1" cellspacing="0" width="100%">
                    <thead>
                    <tr>
                        <th data-field="tName" data-render="detailsView.fn.render.textmesage1" width="150">表名称</th>
                        <th data-field="tComments" data-render="detailsView.fn.render.textmesage2" width="150">表注释</th>
                        <th data-field="tAlias" data-render="detailsView.fn.render.textmesage3" width="150">别名</th>
                        <th data-field="colName" data-render="detailsView.fn.render.textmesage4" width="150">字段名称</th>
                        <th data-field="colComments" data-render="detailsView.fn.render.textmesage5" width="150">字段注释</th>
                        <th data-field="nullable" data-render="detailsView.fn.render.selectoperation1" width="150">是否为空</th>
                        <th data-field="pkFlag" data-render="detailsView.fn.render.selectoperation2" width="150">是否主键</th>
                        <th data-field="colType" data-render="detailsView.fn.render.textmesage6" width="150">字段类型</th>
                        <th data-field="colLength" data-render="detailsView.fn.render.numbermesage1" width="100">字段长度</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </form>
        <form action="" id="upload_list_form2">
            <div class="details_term_content wd-table-container">
                <table class="table table-striped table-bordered table-hover table-condensed" id="upload_list_view2" cellspacing="0" width="100%">
                    <thead>
                    <tr>
                        <th data-field="tName" data-render="detailsView.fn.render.textmesage1" width="100">表名称</th>
                        <th data-field="tComments" data-render="detailsView.fn.render.textmesage2" width="100">表注释</th>
                        <th data-field="tAlias" data-render="detailsView.fn.render.textmesage3" width="100">别名</th>
                        <th data-field="colName" data-render="detailsView.fn.render.textmesage4" width="100">字段名称</th>
                        <th data-field="hPKey" data-render="detailsView.fn.render.textmesage7" width="100">HIVE表分区列名</th>
                        <th data-field="hPValue" data-render="detailsView.fn.render.textmesage8" width="100">HIVE表分区列值</th>
                        <th data-field="hNumMappers" data-render="detailsView.fn.render.numbermesage2" width="100">MAPPER数量</th>
                        <th data-field="hDir" data-render="detailsView.fn.render.textmesage9" width="100">HDFS目录</th>
                        <th data-field="colComments" data-render="detailsView.fn.render.textmesage5" width="100">字段注释</th>
                        <th data-field="nullable" data-render="detailsView.fn.render.selectoperation1" width="100">是否为空</th>
                        <th data-field="pkFlag" data-render="detailsView.fn.render.selectoperation2" width="100">是否主键</th>
                        <th data-field="colType" data-render="detailsView.fn.render.textmesage6" width="100">字段类型</th>
                        <th data-field="colLength" data-render="detailsView.fn.render.numbermesage1" width="100">字段长度</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </form>
        <div class="text-center footer">
            <button type="button" class="btn btn-primary enter_btn save_btn" onClick="detailsView.fn.saveUpload(this)">提交</button>
        </div>
    </div>
</div>
<script src="./../../static/modules/details/details.js"></script>